﻿using CommonType;
using SqlSugar;

namespace S_Examine.Domains.Entity
{
	/// <summary>
	/// 考核指标管理
	/// </summary>
	[SugarTable("AssessmentIndex")]
	public class AssessmentIndex : BaceEntity
	{
		/// <summary>
		/// 考核指标管理Id
		/// </summary>
		[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 指标类型
		/// </summary>
		[SugarColumn(ColumnDescription = "指标类型", Length = 50, IsNullable = true)]
		public string? IndexType { get; set; }

		/// <summary>
		/// 指标名称
		/// </summary>
		[SugarColumn(ColumnDescription = "指标名称", Length = 50, IsNullable = true)]
		public string? IndexName { get; set; }

		/// <summary>
		/// 指标描述
		/// </summary>
		[SugarColumn(ColumnDescription = "指标描述", Length = 50, IsNullable = true)]
		public string? IndexDesc { get; set; }

		/// <summary>
		/// 最大分
		/// </summary>
		[SugarColumn(ColumnDescription = "最大分")]
		public int MaximumFraction { get; set; } = 100;

		/// <summary>
		/// 最小分
		/// </summary>
		[SugarColumn(ColumnDescription = "最小分")]
		public int LeastMinute { get; set; } = 0;

		/// <summary>
		/// 初始分
		/// </summary>
		[SugarColumn(ColumnDescription = "初始分")]
		public int InitialScore { get; set; } = 50;
	}
}
